Skip to content

Prepared statement buffer concurrent bug fix#8294

Merged
harshit-gangal merged 2 commits intovitessio:release-8.0from
planetscale:send_long_data_buff_fix
Jun 22, 2021
Merged

Prepared statement buffer concurrent bug fix#8294
harshit-gangal merged 2 commits intovitessio:release-8.0from
planetscale:send_long_data_buff_fix

Conversation

@systay
Copy link
Copy Markdown
Collaborator

@systay systay commented Jun 9, 2021

Description

During high load, if prepared statements are used, the parameter values could accidentally get overwritten with dirty data from other concurrent connections.

This PR fixes this by copying the data before releasing the buffer.

Checklist

  • Tests were added or are not required
  • Documentation was added or is not required

@systay systay force-pushed the send_long_data_buff_fix branch from 0ed7c73 to 7d8127f Compare June 9, 2021 17:08
harshit-gangal and others added 2 commits June 22, 2021 10:29
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants